<?php
	require '../utils/conn.php';
	include_once '../models/machine.php';
	
	$title = $_REQUEST['title'];
	$update = $_REQUEST['update'];
	$content = $_REQUEST['content'];
	$machineType = $_REQUEST['machineType'];
	$machineId = $_REQUEST['machineId'];
	
	$timestamp = time();
	
	$query = "UPDATE t_machine SET title='$title', update_info='$update', type=$machineType, content='$content', timestamp='$timestamp' WHERE m_id=$machineId";
	
	mysql_query($query) or die("insert set failed：". mysql_error());
?>